package com.zues.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zues.entity.Shop;

public interface ShopDAO {
	/**
	 * 分页查询店铺，可输入的条件有 店铺名（模糊） 店铺状态，店铺类别，区域ID，owner
	 * @param shopCondition
	 * @param rowIndex	从第几行开始
	 * @param pageSize	返回的条数
	 * @return
	 */
	public List<Shop> queryShopList(@Param("shopCondition")Shop shopCondition, @Param("rowIndex")int rowIndex, @Param("pageSize")int pageSize);
	
	/**
	 * 返回queryList的总数
	 * @param shopCondition
	 * @return
	 */
	public int queryShopCount(@Param("shopCondition")Shop shopCondition);
	
	/**
	 * 新增商铺
	 * @param shop
	 * @return
	 */
	public int insertShop(Shop shop);
	
	/**
	 * 更新店铺
	 * @param shop
	 */
	public int updateShop(Shop shop);
	
	/**
	 * 通过shop id 查询店铺
	 * @param shopId
	 * @return
	 */
	public Shop queryByShopId(long shopId);
}
